package com.jingsai.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jingsai.POJO.Common.SubmitLast;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.ArrayList;

@Mapper
public interface SubmitLastMapper extends BaseMapper<SubmitLast> {
    @Select("select * from submit_last order by submit_id desc ")
    ArrayList<SubmitLast> selectAll();

    @Update("update submit_last set submit_id= #{id}")
    void update(int id);

}
